package com.auto.learning.event;

import android.content.Context;
import android.os.Message;

import com.auto.learning.tools.CommonMethod;

public class Handle extends android.os.Handler{
	
	private final static int HTTP_REQUESE_FAIL = -100;
	private Context context;
	
	
	public Handle(Context context){
		this.context = context;
	}
	
	@Override
	public void handleMessage(Message msg) {
		super.handleMessage(msg);
		switch (msg.what) {
		case HTTP_REQUESE_FAIL:
			if (context != null) {
				CommonMethod.makeNotice(context, msg.obj+"");
			}
			break;
		}
	}
}
